package structural.proxy;

public class ProxyPattern {
    public static void main(String[] args) {
        Library library = new Library();

        IEbook IEbook1 = new EbookProxy("Design Patterns in Java");
        IEbook IEbook2 = new LoggingEbookProxy("Effective Java");
        library.add(IEbook1);
        library.add(IEbook2);

        library.openEbook("Design Patterns in Java");
        library.openEbook("Effective Java");
    }
}
